package com.our.learning.infrastructure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 题目性质
 * @author : leapzed
 * @date : 2023-06-24
 */
@TableName("t_train")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Train {
    //巩固练习id
    @TableId(value = "train_id", type = IdType.AUTO)
    private Integer trainId;
    //学生ID
    private Integer userId;
    //正确率
    private String accuracy;
    //训练时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
